package com.scale.service.conversation.service;

import com.example.conversation.entity.Conversations;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 对话会话表 服务类
 * </p>
 *
 * @author crp
 * @since 2025-09-24
 */
public interface ConversationsService extends IService<Conversations> {

    /**
     * 获取角色的活跃对话数
     */
    Integer getActiveConversationCount(Long characterId);

    /**
     * 获取角色的今日对话数
     */
    Integer getTodayConversationCount(Long characterId);

    /**
     * 创建或获取对话
     */
    Conversations createOrGetConversation(Long userId, Long characterId);
}
